package com.lx.controller;

import com.lx.remote.HelloRemote;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 段誉
 * @create 2019-07-09 17:26
 */
@RestController
public class HelloController {
  @Autowired
  HelloRemote helloRemote;

  @GetMapping("/hello/{name}")
  public String index (@PathVariable("name") String name) {
    return helloRemote.hello(name);
  }
}
